#ifndef __PERSON_H__
#define __PERSON_H__
typedef struct Student Student_t;
typedef struct Student* pStudent_t;

typedef struct Teacher Teacher_t;
typedef struct Teacher* pTeacher_t;

typedef struct Admin Admin_t;
typedef struct Admin* pAdmin_t;


typedef enum {
    STUDYING,  // 在学（默认值为0）
    SUSPENDED, // 休学（值为1）
    GRADUATED  // 毕业（值为2）
} StudentStatus;

typedef enum {
    EMPLOYED,  // 在职（默认值为0）
    BREAK, // 停职（值为1）
    DIMISSION  // 离职（值为2）
} StaffStatus;



//学生信息结构体
struct Student{
    //unsigned int id;
    char account[50];
    char password[50];
    char name[20];
	char sex;
	int height;
	float score;
    StudentStatus status;
    struct Student*prev;
    struct Student* next;
};

//老师信息结构体
struct Teacher{
    //unsigned int id;
    char account[50];
    char password[50];
    char name[20];
    int age;
    char sex;
    StaffStatus status;
    struct Teacher* prev;
    struct Teacher* next;
};

//管理员结构体
struct Admin{
    //unsigned int id;
    char account[50];
    char password[50];
    char name[20];
    struct Admin* prev;
    struct Admin* next;
};


#endif
